﻿using System.Configuration;
using System.Reflection;

namespace Yd.DALFactory
{
    public sealed class DataAccess
    {
        private static readonly string path = ConfigurationManager.AppSettings["WebDAL"];
        private DataAccess() { }

        public static Yd.Domain.IDAL.ICommDAL CreateLogDAL()
        {
            string className = path + ".DAL.CommDAL";
            return (Yd.Domain.IDAL.ICommDAL)Assembly.Load(path).CreateInstance(className);
        }
    }
}
